package com.zhichubao.enterprise.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangzhiwei
 * @since 2021-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("department")
@ApiModel(value="Department对象", description="")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "部门代码")
    private String deptCode;

    @ApiModelProperty(value = "法律实体")
    private Long legalEntityId;

    @ApiModelProperty(value = "成本中心")
    private Long costCenterId;

    @ApiModelProperty(value = "是否启用: 0: 未启用，1:启用")
    private Boolean isActive;

    @ApiModelProperty(value = "是否删除 0:未删除, 1:已经删除")
    private Boolean isDelete;

    @ApiModelProperty(value = "更新人")
    private String updator;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "上级部门")
    private Long parentId;

    @ApiModelProperty(value = "负责人ID")
    private Long supervisorEmpId;

    @ApiModelProperty(value = "创建类型 1 自建  2 U9  3 NC 4致远OA 5小米")
    private Integer createType;

    @ApiModelProperty(value = "第三方系统编号")
    private String otherSystemCode;

    @ApiModelProperty(value = "部门级别")
    private String treeLevelNum;

    @ApiModelProperty(value = "父部门ID")
    private String parentDeptId;

    @ApiModelProperty(value = "父部门描述")
    private String parentDeptDesc;


}
